<%-- 
    Document   : userHome
    Created on : 2008-12-11, 17:15:39
    Author     : sony
--%>

<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:include value="/layout/header.jsp" />
<!-- B.1 MAIN CONTENT -->
<div class="main-content">
    <!-- Content unit - One column -->
    <div class="column1-unit">
        <div class="column2-unit-left">
            <h1 class="block">相关公告</h1>
            <ul>
                <s:if test="orgNews.size()!=0">
                    <s:iterator value="orgNews">
                        <li>
                            <a href="showNewsDetail.action?id=<s:property value='id'></s:property>">
                                <s:property value="title"></s:property>
                            </a>
                            &nbsp;&nbsp;
                            <s:property value="time.toLocaleString()"></s:property>
                        </li>

                    </s:iterator>
                    <br>
                    <li><a href="newsList.action">&rsaquo;&rsaquo;查看更多</a></li>
                    
                </s:if>
                <s:else>
                    <p>暂时没有任何关于您参加的组织的新闻.
                </s:else>
            </ul>

            <h1 class="block">我管理的公告</h1>
            <ul>
                <s:if test="myNews.size()!=0">
                    <s:iterator value="myNews">

                        <li> <a href="showNewsDetail.action?id=<s:property value='id'></s:property>">
                                <s:property value="title"></s:property>
                            </a>
                            &nbsp;&nbsp;
                            <s:property value="time.toLocaleString()"></s:property>
                            <br>
                            <a href="editNews.action?newsId=<s:property value='id'></s:property>">编辑</a>|
                        <a href="deleteNews.action?id=<s:property value='id'></s:property>">删除</a></li>
                    </s:iterator>
                  
                    
                        <br>
                    <li><a href="myNewsList.action">&rsaquo;&rsaquo;查看更多</a></li>
                </s:if>
                <s:else>
                    <p>您还没有为任何所领导的组织发布新闻.
                </s:else>
            </ul>
        </div>
        <div class="column2-unit-right">
            <h1 class="block">新邮件列表</h1>
            <h2>未读信件共<a href="receiveBox.action"><s:property value="mail.size()"/></a>条</h2>
            <ul>
                <s:if test="mail.size()!=0">
                    <s:iterator value="mail">
                    <li><a href="showMailDetail.action?mailId=<s:property value="id"/>">
                        <s:property value="title"/>&nbsp&nbsp;
                        <s:property value="time.toLocaleString()"/>
                    </a></li>
                    </s:iterator>
                    <br>
                    <li><a href="receiveBox.action">&rsaquo;&rsaquo;查看更多</a></li>
                    <br>
                </s:if>
            </ul>
        </div>
        <hr class="clear-contentunit" />



    </div>
</div>
<s:include value="/layout/footer.jsp"/>
